package com.marlowe.api.constants;

import lombok.Data;

/**
 * @program: lib-web
 * @description: 基本返回数据结构
 * @author: Marlowe
 * @create: 2020-12-28 01:15
 **/
@Data
public class ResultDTO {
    private String system;
    private Integer code;
    private String msg;
    private Object data;

    public ResultDTO(int code, String msg) {
        this.system = "lib";
        this.code = code;
        this.msg = msg;
    }



    public ResultDTO(int code, String msg, Object data) {
        this.system = "lib";
        this.code = code;
        this.msg = msg;
        this.data = data;
    }
}
